package fr.agriparcelle.server.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import fr.agriparcelle.client.CredentialsService;
import fr.agriparcelle.server.dao.CredentialsDao;
import fr.agriparcelle.shared.User;

/**
 * 
 * @author Parant
 * 
 */
@Service
public class CredentialsServiceImpl implements CredentialsService {

	@Autowired
	private CredentialsDao credentialsDao;

	@Transactional(propagation = Propagation.REQUIRED)
	public void saveUser(User user) {
		credentialsDao.saveUser(user);
	}
}
